import axios from "axios";

let QueryImgApi = "";
if (typeof import.meta.env.VITE_APP_BASE_API === "string") {
  QueryImgApi = import.meta.env.VITE_APP_BASE_API;
}

export const handleQueryImg = async (id: any) => {
  return await axios.post(QueryImgApi + "/api/queryimg", {
    id,
  });
};
